import Vue from "vue";
import VueRouter from "vue-router";
import Order from "../components/Order.vue";
import User from "../components/User.vue";
Vue.use(VueRouter);
const routes = [
    {
        path:'/',
        redirect:'/user'
    },
    {
        path:'/user',
        component:User
    },
    {
        path:"/order",
        component:Order
    }
]
const router = new VueRouter({
    routes
});
 
export default router 